package com.antoni.mapper;

import com.antoni.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Zhang Chao
 * @Date 2021/5/10 20:42
 * @Version 1.0
 */
//这个注解表示了这个是一个mybatis的mapper类：
@Mapper
//dao层
@Repository
public interface DepartmentMapper {

    //获得所有部门信息
    List<Department> getDepartments();

    //通过id获得部门信息
    Department getDepartment(Integer id);
}
